import React from "react";
import { User, Post } from "../../interfaces";
function Home2() {
  const user: User = { id: 1, name: "张三", email: "3033984391@qq.com" };
  const post: Post = { id: 1, title: "你好", body: "这是post" };
  return (
    <div>
      <h1>{user.name}</h1>
      <p>{user.email}</p>
      <h2>{post.title}</h2>
      <p>{post.body}</p>
    </div>
  );
}

export default Home2;
